﻿<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  xmlns:my="clr-namespace:VAdvantage.Controls" 
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
             x:Class="VAdvantage.Panels.TreeSearchPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
            
            <!--<ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>-->
        </Grid.ColumnDefinitions>



        <!--<toolkit:TreeViewDragDropTarget AllowDrop="False" x:Name="treeManager" ItemDroppedOnSource="treeManager_ItemDroppedOnSource"
                                        ItemDragStarting="treeManager_ItemDragStarting" Drop="TreeViewDragDropTarget_Drop" 
                                        DragOver="treeManager_DragOver" ItemDragCompleted="treeManager_ItemDragCompleted" 
                                        Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" 
                                        Margin="2" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch"  
                                        VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch">-->
            <sdk:TreeView x:Name="treeMenu" BorderBrush="{x:Null}" VerticalAlignment="Stretch"  HorizontalAlignment="Stretch">
            
        </sdk:TreeView>
        <!--</toolkit:TreeViewDragDropTarget>-->

        <Grid Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBox  x:Name="txtSearch" Grid.Column="0" TextChanged="txtSearch_TextChanged" KeyUp="txtSearch_KeyUp"  HorizontalAlignment="Stretch" Margin="2" />
            <Image Height="21" Width="21" Grid.Column="1" Margin="0" Source="/VAdvantage;component/Images/find32.png"  Stretch="Fill"  VerticalAlignment="Center" ></Image>
        </Grid>
        
    </Grid>
</UserControl>
